<!DOCTYPE html>
<html>

<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <title>YZNCMS后台管理系统</title>
    <meta name="author" content="YZNCMS">
    
    <link rel="stylesheet" href="{__CSS__}/layui/css/layui.css?v={:rand_number()}"/>
    <script type="text/javascript" src="{__JS__}/layui/layui.js?v={:rand_number()}"></script>
    <link rel="stylesheet" href="/static/admin/css/admin.css?v={:rand_number()}">
    <link rel="stylesheet" href="/static/common/font/iconfont.css?v={:rand_number()}">
    
</head>

<body>
  
{if $Think.config.app.app_debug}
<div class="alert alert-danger-light">
    安全提示：当前网站【调试模式】开启中，强烈建议在正式部署后关闭调试模式
</div>
{/if}
{if $Think.config.app.app_trace}
<div class="alert alert-danger-light">
    安全提示：当前网站【Trace调试】开启中，强烈建议在正式部署后关闭Trace调试
</div>
{/if}
<div class="alert alert-success-light">
    <div id="nowTime"></div>
</div>
<div class="layui-row layui-col-space15">
        <div class="panel layui-col-lg3 layui-col-md3 layui-col-sm3 layui-col-xs6">
        <a href="https://doc.thinkphp.cn/v8_0/preface.html" target="_blank">
            <div class="panel_icon yzn-bg-blue">
                <i class="layui-icon layui-icon-read layui-anim"></i>
            </div>
            <div class="panel_word">
                <span>文档</span>
                <cite>使用手册</cite>
            </div>
        </a>
    </div>
    <div class="panel layui-col-lg3 layui-col-md3 layui-col-sm3 layui-col-xs6">
        <a href="https://gitee.com/ztucke/ztucke" target="_blank">
            <div class="panel_icon yzn-bg-orange">
                <i class="layui-icon layui-icon-fonts-code layui-anim"></i>
            </div>
            <div class="panel_word">
                <span>代码</span>
                <cite>下载链接</cite>
            </div>
        </a>
    </div>
    <div class="panel layui-col-lg3 layui-col-md3 layui-col-sm3 layui-col-xs6">
        <a href="https://m.ztuc.cn/" target="_blank">
            <div class="panel_icon yzn-bg-green">
                <i class="layui-icon layui-icon-survey layui-anim"></i>
            </div>
            <div class="panel_word">
                <span>博客</span>
                <cite>技术分享</cite>
            </div>
        </a>
    </div>
    <div class="panel layui-col-lg3 layui-col-md3 layui-col-sm3 layui-col-xs6">
        <a href="javascript:;">
            <div class="panel_icon yzn-bg-purple">
                <i class="layui-icon layui-icon-log layui-anim"></i>
            </div>
            <div class="panel_word">
                <span class="loginTime">
                    {$admin.prev_time|date='Y-m-d H:i:s'}</span>
                <cite>上次登录时间</cite>
            </div>
        </a>
    </div>
</div>
<div class="layui-row layui-col-space10">
    <div class="layui-col-lg12 layui-col-md12">
        <div class="layui-card">
            <div class="layui-card-header" style="border-bottom: 1px solid #eee;">版本信息</div>
            <div class="layui-card-body">
                <table class="layui-table magt0" lay-even>
                    <colgroup>
                        <col width="15%">
                        <col width="35%">
                        <col width="15%">
                        <col width="35%">
                    </colgroup>
                    <tbody>
                        <tr>
                            <td>当前版本</td>
                            <td class="version" id="version">
                            Layui-v{{= layui.v }}</td>
                            <td>ThinkPHP版本</td>
                            <td class="version">{$config.version}</td>
                        </tr>
                        <tr>
                            <td>PHP 版本</td>
                            <td>{$config.php_version}</td>
                            <td>数据库版本</td>
                            <td>{$config.mysql_version}</td>
                        </tr>
                        <tr>
                            <td>服务器域名/IP</td>
                            <td>[{$config.Public_ip}]</td>
                            <td>服务器环境</td>
                            <td class="server">{$config.server_os}</td>
                        </tr>
                        <tr>
                            <td>服务器时间</td>
                            <td>{$config.time}</td>
                            <td>剩余空间</td>
                            <td>{$config.remaining_space}</td>
                        </tr>
                        <tr>
                            <td>最大上传限制</td>
                            <td>{$config.max_upload_size}</td>
                            <td>最大占用内存</td>
                            <td>{$config.memory_limit}</td>
                        </tr>
                    </tbody>
                </table>
            </div>
        </div>
    </div>
</div>

    
<script type="text/javascript">
//获取系统时间
var newDate = '';
getLangDate();
//值小于10时，在前面补0
function dateFilter(date) {
    if (date < 10) { return "0" + date; }
    return date;
}

function getLangDate() {
    var dateObj = new Date(); //表示当前系统时间的Date对象
    var year = dateObj.getFullYear(); //当前系统时间的完整年份值
    var month = dateObj.getMonth() + 1; //当前系统时间的月份值
    var date = dateObj.getDate(); //当前系统时间的月份中的日
    var day = dateObj.getDay(); //当前系统时间中的星期值
    var weeks = ["星期日", "星期一", "星期二", "星期三", "星期四", "星期五", "星期六"];
    var week = weeks[day]; //根据星期值，从数组中获取对应的星期字符串
    var hour = dateObj.getHours(); //当前系统时间的小时值
    var minute = dateObj.getMinutes(); //当前系统时间的分钟值
    var second = dateObj.getSeconds(); //当前系统时间的秒钟值
    var timeValue = "" + ((hour >= 12) ? (hour >= 18) ? "晚上" : "下午" : "上午"); //当前时间属于上午、晚上还是下午
    newDate = dateFilter(year) + "年" + dateFilter(month) + "月" + dateFilter(date) + "日 " + " " + dateFilter(hour) + ":" + dateFilter(minute) + ":" + dateFilter(second);
    document.getElementById("nowTime").innerHTML = "亲爱的{$admin.username}，" + timeValue + "好！ 欢迎使用Layui-v" + layui.v + "版本,当前时间为： " + newDate + "　" + week;
    setTimeout("getLangDate()", 1000);
}
      // 显示 Layui 版本
      var versionTPL = lay('#version')[0].innerHTML;
      lay('#version').html(layui.laytpl(versionTPL).render({}))
      //document.getElementById("layui").innerHTML = "Layui-v" + layui.v + " ";
</script>
</body>
</html>